#!/usr/bin/env sh

x=0
while [ $x -lt 10 ]
do
	rm b$x.txt
	grep -n "#$x" b.txt > b$x.txt
	x=`echo "$x + 1" | bc`
done

